package WebModule::County;

use strict;

use base qw(WebModule);

__PACKAGE__->meta->setup(
    table   => 'county',

    columns => [
        id  => { type=>'serial', not_null=>1 },
        city => { type=>'integer', not_null=>1 },
        county=>{type=>'varchar', length=>30, not_null=>1 },
        zipcode=>{type=>'varchar', length=>15, not_null=>1 },
        areacode=>{type=>'varchar', length=>15, not_null=>1 },
    ],

    primary_key_columns => [ 'id' ],


    foreign_keys=>[
        city=>{
            class=>'WebModule::City',
            key_columns=>{ city=>'id'},
        },
    ],


);

1;

